package fr.adfm.dto;

import java.io.Serializable;

public class MemberDto implements Serializable{

	private static final long serialVersionUID = 1L;

	private long membreId;
	private String motDePasse;
	private String email;
	private String nom;
	
	private String profil;
	

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	public long getMembreId() {
		return membreId;
	}


	public void setMembreId(long membreId) {
		this.membreId = membreId;
	}


	public String getMotDePasse() {
		return motDePasse;
	}


	public void setMotDePasse(String motDePasse) {
		this.motDePasse = motDePasse;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getProfil() {
		return profil;
	}


	public void setProfil(String profil) {
		this.profil = profil;
	}
	
	


	public String getNom() {
		return nom;
	}


	public void setNom(String nom) {
		this.nom = nom;
	}


	@Override
	public String toString() {
		return "MemberDto [membreId=" + membreId + ", motDePasse=" + motDePasse
				+ ", email=" + email + ", profil=" + profil
				+ ", toString()="
				+ super.toString() + "]";
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberDto other = (MemberDto) obj;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		return true;
	}


	
}
